HAL SPDIFRX migration: List of applicable concepts ¶
This section provides information about the HAL SPDIFRX applicable architecture concepts.
Concepts for SPDIFRX ¶
|
Concept |
Description |
|---|---|
|
The initialization has been split into separate initialization and configuration functions:
|
|
|
Removal and conversion of init structure to configuration structure |
The initialization structure
|
|
The handle structure has been renamed to
|
|
|
The structure
|
|
|
The functions
|
|
|
New APIs have been introduced to get and set SPDIFRX features. |
|
|
In HAL2, DMA link APIs are provided with explicit naming and parameters :
|
|
|
Individual callback registration APIs replace global register and unregister functions |
Split global register callback SPDIFRX into one register per callback and remove unregister callback SPDIFRX. |
|
All hardware macros have been removed from the HAL SPDIFRX driver, and equivalent services are converted into HAL static inline APIs. |
|
|
The SPDIFRX state machine has been reworked to ensure transitions between the peripherals functional states. |
|
|
The HAL SPDIFRX functions were updated to return:
|
|
|
Update the error management function to
|
|
|
All TypeDef parts of the HAL SPDIFRX driver have been removed and replaced by
|
|
|
The
|
|
|
Add HAL PPP Services for Drivers with Handle to Retrieve Corresponding Peripheral Clock Frequency. |
The HAL SPDIFRX driver provides a new API to retrieve the clock frequency:
|
|
Replace Finite Parameter Defines (Including PPP Instances) with Enum Types at HAL Levels. |
Finite parameters (including SPDIFRX instances) have been converted into enumerated types (enums) at HAL level. This improves code readability, maintainability, and type safety. |
|
Add HAL_PPP Prefix to All HAL Peripheral APIs (Defines, Macros, Types, and Functions). |
All HAL SPDIFRX functions start with
|
Other HAL SPDIFRX changes ¶
|
Concept |
Consideration |
|---|---|
|
Remove
|
There is no start DMA API in SPDIFRX. |